/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo3;

/**
 *
 * @author Administrator
 */
public class ArrayListDemo {
    public static void main(String[] args) {
        try{
            Hashtable h=new Hashtable();
            AddressBookBean temp;
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            for(){
                String name,mobile,qq;
                System.out.print(br);
                name=br.readLine();
                System.out.print(br);
                mobile=br.readline();
                System.out.print(br);
                qq=br.readLine();
                temp=new AddressBookBean();
                temp.setName(name);
                temp.setMobile(mobile);
                temp.setQq(qq);
                h.put();
                String find="王五，李四，张三";
                System.out.print(br);
                find=br.readLine();
                if(h.containsKey()){
                    temp=(AddressBookBean(h.get(find)));
                    System.out.println(find+"电话号码是:"+temp.getMobile);
                     System.out.println(find+"的QQ是:"+temp.getQQ);
                     
                }
                
        }catch(Exception ex){
            ex.printStackTrace();
        }
    
    }
}


